/*===========================================
	Paradigm Engine for Twilight Hack
	Build 1.0
	Primitive creation definitions
	
	(C)2008 Vicious1988 - Syndicate Development
===========================================*/

#include <stdlib.h>
#include <string.h>
#include <malloc.h>
#include <math.h>
#include <gccore.h>
#include "c_primitives.h"


#define DEFAULT_FIFO_SIZE	(256*1024)
int totalcubes=0;
int totalspheres=0;
int totalpolys=0;

primitive cubes[999];

int create_cube (int dscale)
{
	cubes[totalcubes].x=0.0;
	cubes[totalcubes].y=0.0;
	cubes[totalcubes].z=0.0;
	
	cubes[totalcubes].xr=0.0;
	cubes[totalcubes].yr=0.0;
	cubes[totalcubes].zr=0.0;
	
	cubes[totalcubes].scalex=dscale;
	cubes[totalcubes].scaley=dscale;
	cubes[totalcubes].scalez=dscale;
	
	cubes[totalcubes].rotx=0.0;
	cubes[totalcubes].roty=0.0;
	cubes[totalcubes].rotz=0.0;
	
	cubes[totalcubes].usetex=0;
	cubes[totalcubes].tex=0;
	totalcubes++;
	return totalcubes-1;
}
